package com.qf.springbootproject.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "学生实体类")
public class Student {
    @ApiModelProperty("学生唯一ID")
    private Integer studentId;
    @ApiModelProperty("学生姓名")
    private String studentName;
    @ApiModelProperty("学生密码")
    private String password;

//    @DateTimeFormat(pattern = "yyyy/MM/dd")
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    private Date birthday;
}
